﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="blog.aspx.cs" Inherits="blog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="chest">
        <!--统计、标签、搜索和微博-->
        <div id="side" class="fn-left">
            <div class="sdt">
                <div class="sdtn">
                    BaritSaiy
                </div>
                <div class="sdtt">
                    <ul>
                        <li>文章</li>
                        <li>评论</li>
                        <li>访问</li>
                    </ul>
                    <div class="fn-clear">
                    </div>
                    <ul>
                        <li>450</li>
                        <li>140</li>
                        <li>1048373</li>
                    </ul>
                </div>
                <div class="fn-clear">
                </div>
                <div class="marks">
                    <ul>
                        <%=sbmk.ToString() %>
                    </ul>
                </div>
            </div>
            <div class="fn-clear">
            </div>
            <div id="search">
                <input type="text" runat="server" name="txtKw" id="txtKw" /><input id="btnSearch"
                    type="button" value="搜 索" />
            </div>
            <div>
                <iframe width="100%" height="800" class="share_self" frameborder="0" scrolling="no"
                    src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=800&fansRow=1&ptype=1&speed=100&skin=9&isTitle=1&noborder=1&isWeibo=1&isFans=0&uid=2788488565&verifier=93bdf87d&dpc=1">
                </iframe>
            </div>
        </div>
        <!--最新文章-->
        <div id="blogs" class="fn-right">
            <ul>
                <asp:Repeater ID="repArticles" runat="server">
                    <ItemTemplate>
                        <li>
                            <h2>
                                <a href="" target="_blank" title='<%# Eval("title") %>'>
                                    <%# BTS.COMMON.StringHelper.SubString(Eval("Title").ToString(), 20) %></a></h2>
                            <p>
                                <%# BTS.COMMON.StringHelper.SubString(Eval("Introduction").ToString(),200)%><a href=""
                                    target="_blank">详情...</a>
                            </p>
                            <div class="property">
                                <div class="fn-left">
                                    (<%#Eval("wtime") %>)&nbsp;标签:<%# GetRemarkLinks(Eval("Remarks").ToString())%></div>
                                <div class="fn-right">
                                    阅读 (<%#Eval("Clicks")%>)&nbsp;&nbsp;<a href="" class="jiathis jialike" target="_blank">
                                        分享</a>
                                </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <div id="page">
                <Pager:Pagination ID="pc" runat="server" CPageQueryName="page" DisplayGoPage="false"
                    DisplayMessage="true" DisplayNextButton="True" DisplayPreviousButton="True" FirstText="首页 "
                    LastText=" 尾页" NextPageText=" 下一页 " PreviousPageText=" 上一页 " DisplayPage="5" />
            </div>
        </div>
    </div>
    <div class="fn-clear">
    </div>
    <!-- UJian Button BEGIN -->
    <script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide&icon=3&uid=1649565"></script>
    <!-- UJian Button END -->
    <script type="text/javascript">
        var jiathis_config = {
            data_track_clickback: true,
            summary: "",
            hideMore: false
        }
    </script>
    <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1649565"
        charset="utf-8"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnSearch").click(function () {
                var keyword = $("#txtKw").val();
                var url = window.location.href;
                if (keyword.length > 0) {
                    if (url.indexOf("?") > 0) {
                        window.location.href = url + "&kw=" + keyword;
                    } else {
                        window.location.href = url + "?kw=" + keyword;
                    }
                }
            });
        });
    </script>
</asp:Content>
